<?php
/*------------------------------------------------------------------------
# JA Erica 1.0 - Dec, 2007
# ------------------------------------------------------------------------
# Copyright (C) 2004-2006 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license - Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites:  http://www.joomlart.com -  http://www.joomlancers.com
-------------------------------------------------------------------------*/

defined( 'DS') || define( 'DS', DIRECTORY_SEPARATOR );
include_once (dirname(__FILE__).DS.'/ja_vars.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl();?>/css/editor.css" type="text/css" />
<link href="<?php echo $tmpTools->templateurl();?>/css/template_css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl();?>/scripts/ja.script.js"></script>
<link href="<?php echo $tmpTools->templateurl();?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR);?>.css" rel="stylesheet" type="text/css" />
<?php $jamenu->genMenuHead(); ?>

<?php //genColorHead(); ?>

<!--[if lte IE 6]>
<style type="text/css">
.clearfix {	height: 1%;}
#ja-cssmenu li {	float: left; clear: both; width: 100%; }
</style>
<![endif]-->

<!--[if gte IE 7.0]>
<style type="text/css">
.clearfix {	display: inline-block;}
</style>
<![endif]-->

</head>

<body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>">
<a title="Skip to content" href="#Content" style="display: none;">Skip to content</a>

<!-- BEGIN: HEADER -->
<a name="Top" id="Top"></a>
<div id="ja-mainwrapper">

<!-- BEGIN: HEADER -->
<div id="ja-header" class="clearfix">

	<?php if ($tmpTools->getParam(JA_TOOL_USER) || $this->countModules('user4')) {?>
	<div id="ja-usertoolswrap">
		<div id="ja-usertools">
			<?php $tmpTools->genToolMenu($tmpTools->getParam(JA_TOOL_USER) & 7, 'gif'); ?>
			<?php if ($this->countModules('user4')) {?>
			<div id="ja-search">
			<jdoc:include type="modules" name="user4" style="raw" />
			</div>
			<?php } ?>
		</div>
	</div>
	<?php } ?>

	<h1>
		<a href="index.php"><img src="<?php echo $tmpTools->templateurl();?>/images/logo-<?php echo $tmpTools->getParam(JA_TOOL_COLOR);?>.jpg" alt="<?=$tmpTools->sitename();?>" /></a>
	</h1>

	<!-- BEGIN: TOP NAVIGATION -->
	<?php if( $this->countModules('user3') ) { ?>
    <div id="ja-topnav-wrap" class="clearfix">
      <div id="ja-topnav">
       	<jdoc:include type="modules" name="user3" style="raw" />
    	</div>
  	</div>
  <?php } ?>
	<!-- END: TOP NAVIGATION -->

</div>
<!-- END: HEADER -->

<?php if( $this->countModules('header') ) { ?>

<?php
$bottomborder = "";
if( $topmodule ) {
	$bottomborder = " style=\"border-bottom:none;\"";
} 
?>

<!-- BEGIN: TOPSTORY -->
<div id="ja-topstory" class="clearfix">
  
  <!-- BEGIN: MAIN NAVIGATION -->
		<div id="ja-mainnav"<?php echo $bottomborder;?>>
		<?php $jamenu->genMenu (0); ?>
		</div>
		<!-- END: MAIN NAVIGATION -->
  
  <div id="ja-banner"<?php echo $bottomborder;?>>
  <jdoc:include type="modules" name="header" style="raw" />
  </div>
  
</div>
<!-- END: TOPSTORY -->
<?php } ?>

<?php if( $topmodule ) { ?>
<!-- BEGIN: TOP SPOTLIGHT -->
<div id="ja-spotlight" class="clearfix">
  <?php if( $this->countModules('user8') ) {?>
  <div id="ja-box1" class="ja-box<?php echo $user8divstyle; ?>" style="width: <?php echo $divtopwidth; ?>;">
    <jdoc:include type="modules" name="user8" style="rounded" />
  </div>
  <?php } ?>
  
  <?php if( $this->countModules('user9') ) {?>
  <div id="ja-box2" class="ja-box<?php echo $user9divstyle; ?>" style="width: <?php echo $divtopwidth; ?>;">
    <jdoc:include type="modules" name="user9" style="rounded" />
  </div>
  <?php } ?>
  
  <?php if( $this->countModules('top') ) {?>
  <div id="ja-box3" class="ja-box<?php echo $topdivstyle; ?>" style="width: <?php echo $divtopwidth; ?>;">
    <jdoc:include type="modules" name="top" style="rounded" />
  </div>
  <?php } ?>
  
</div>
<!-- END: TOP SPOTLIGHT -->
<?php } ?>

<div id="ja-container" class="clearfix">
	<!-- BEGIN: CONTENT -->
	<div id="ja-mainbody<?php echo $divid; ?>">
	<a name="Content" id="Content"></a>

	<div id="ja-content">
		<?php if ($this->countModules('user5')) { ?>
		<div id="ja-coolads">
		<jdoc:include type="modules" name="user5" style="xhtml" />
		</div>
		<?php } ?>
	
		
		<?php if (!$tmpTools->isFrontPage()){ ?>
		<div id="ja-pathway">
			<jdoc:include type="module" name="breadcrumbs" />
		</div>
		<?php } ?>
		
		<jdoc:include type="component" />
	</div>

	<?php if ($ja_left) { ?>
	<!-- BEGIN: LEFT COLUMN -->
	
	<div id="ja-leftcol">
		<?php if( !$this->countModules('header') ) { ?>
  	<!-- BEGIN: MAIN NAVIGATION -->
		<div id="ja-mainnav" style="width:100%;border-bottom:none;">
		<?php $jamenu->genMenu (0); ?>
		</div>
		<!-- END: MAIN NAVIGATION -->
		<?php } ?>
		
		<?php if( $hasSubnav ) { ?>
		<div id="ja-subnav" class="module-<?php echo $tmpTools->getParam(JA_TOOL_COLOR);?>">
      <div>
        <div>
          <div>
          <h3><?php echo $jamenu->getParentText(1); ?></h3>
  		     <?php $jamenu->genMenu (1,1);	?>
  		    </div>
        </div>
      </div>
		</div>
		<?php } ?>
		
			<jdoc:include type="modules" name="left" style="rounded" />
		</div>
	<!-- END: LEFT COLUMN -->
	<?php } ?>

	</div>
	<!-- END: CONTENT -->

	<?php if ($ja_right) { ?>
	<!-- BEGIN: RIGHT COLUMN -->
	<div id="ja-rightcol">
		<jdoc:include type="modules" name="right" style="rounded" />
	</div>
	<br />
	<!-- END: RIGHT COLUMN -->
	<?php } ?>

</div>


<!-- BEGIN: FOOTER -->
<div id="ja-footer">
  
  <?php if ($bottommodule) { ?>
  <!-- BEGIN: BOTTOM SPOTLIGHT -->
  <div id="ja-botslwrap">
  	<div id="ja-botsl" class="clearfix">
  
  		<?php if ( $this->countModules('user1') ) { ?>
  		<div class="ja-box<?php echo $user1divstyle; ?>" style="width: <?php echo $divbotwidth ?>;">
  			<jdoc:include type="modules" name="user1" style="xhtml" />
  		</div>
  		<?php } ?>
  
  		<?php if ( $this->countModules('user2') ) { ?>
  		<div class="ja-box<?php echo $user2divstyle; ?>" style="width: <?php echo $divbotwidth ?>;">
  			<jdoc:include type="modules" name="user2" style="xhtml" />
  		</div>
  		<?php } ?>
  
  		<?php if ( $this->countModules('newsflash') ) { ?>
  		<div class="ja-box<?php echo $newsflashdivstyle; ?>" style="width: <?php echo $divbotwidth ?>;">
  			<jdoc:include type="modules" name="newsflash" style="xhtml" />
  		</div>
  		<?php } ?>
  
  	</div>
  </div>
  <!-- END: BOTTOM SPOTLIGHT -->
  <?php } ?>
  
  <p id="ja-bottomline">
		Copyright &copy; <?php echo JHTML::_('date', 'now', '2005 - %Y' ) . ' ' . $tmpTools->sitename();?>. 
<a href="http://www.thietkewebtop.com" title="thiết kế web, thiet ke web" target="_blank">Thiết kế web</a> <a href="http://www.phananhhuy.vn" title="thiết kế web giá rẻ, thiet ke web gia re" target="_blank">PAH</a>
  </p>
		
	<div id="ja-cert">
	  <a href="<?php echo $tmpTools->templateurl();?>/index.php?option=com_rss&amp;feed=RSS2.0&amp;no_html=1" target="_blank" title="RSS 2.0" style="text-decoration: none;">
		<img src="<?php echo $tmpTools->templateurl();?>/images/but-rss.png" alt="RSS 2.0" />
	 </a>
		<?php if ($tmpTools->getParam(JA_TOOL_MENU) != 3 ) { ?>
		<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo JURI::base();?>" target="_blank" title="Our site is valid CSS" style="text-decoration: none;">
			<img src="<?php echo $tmpTools->templateurl();?>/images/but-css.png" alt="Our site is valid CSS" />
		</a>
		<?php } ?>
		<a href="http://validator.w3.org/check/referer" target="_blank" title="Our site is valid XHTML 1.0 Transitional" style="text-decoration: none;">
			<img src="<?php echo $tmpTools->templateurl();?>/images/but-xhtml10.png" alt="Our site is valid XHTML 1.0 Transitional" />
		</a>
	</div>
	
</div>
<!-- END: FOOTER -->	

</div>

<jdoc:include type="modules" name="debug" style="rae" />
</body>

</html>

